﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="admin_pdfgl_scslt.aspx.cs" Inherits="admin_pdfgl_scslt" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>pdf管理_生成缩略图</title>
    <script type="text/javascript" language="javascript" src="admin/js/jquery-1.3.2.min.js"></script>
    <link href="admin/css/style_update.css" rel="stylesheet" type="text/css" />
     <script type="text/javascript" language="javascript">
     

     //数据表数据信息显示
     function mode(b)
     { 
         var obj1 = document.getElementById('div_update_all'); 
         var obj2 = document.getElementById('div_update');
         if(b)
         {
             obj1.style.display='block';
             obj2.style.display='none';
         }
         else
         {
             obj1.style.display='none';
             obj2.style.display='block';
         }
         
      }
      

       
       //警告消息
     function warning(msg)
     {
        $("#txt_warning").html(msg);
//        alert(msg);
        $("#div_warning").show();	 
     } 
    
      //等待
    function wait()
    {
//        alert('等待');
//       document.getElementById("datamessage").style.display="none";
       document.getElementById("divWaiting").style.display="block";
       document.getElementById("divDisable").style.display="block";
    }
    //等待结束
    function wait_end()
    {
//        alert('等待结束');
//       document.getElementById("datamessage").style.display="block";
       document.getElementById("divWaiting").style.display="none";
       document.getElementById("divDisable").style.display="none";
    }
     //页面换层
    function ChangeDiv()
    {
        document.getElementById("divDisable").style.height=document.body.offsetHeight+document.body.scrollTop;
    }
    window.onscroll=ChangeDiv;
    
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="display:none;">
        
    </div> 
    <div class="right_main">

        <div class="location">
            <div class="kou"></div>
           
             <div class="koufont">系统管理</div>
            <a href="#" class="one ">pdf管理 ></a>
            <a href="#" class="two">pdf生成缩略图</a>
        </div>
        <br />
        <div class="info_border clear">
                 
             <div class="title">
    	         <div class="right_tl1"></div> 
       	         <div class="right_tl2">更新PDF文件缩略图</div>	
             </div>
             <div class="text_table">
       	         <div>
       	             <div>           	         
       	             <asp:RadioButton ID="RadioButton_update_all" runat="server"  CssClass="input_radio" onclick="mode(true);"
                         GroupName="update"  Text="更新全部缩略图"  />
                     <asp:RadioButton ID="RadioButton_update" runat="server" CssClass="input_radio" onclick="mode(false);" Checked=true
                         GroupName="update"  Text="高级更新"  />
                         <br />
                         <br />
                     </div>
                     <div id="div_update_all">
                        更新全部PDF文件的缩略图：&nbsp;
                        <asp:Button ID="bt_qb" class="button_U" style="padding-left:auto;padding-right:auto" runat="server" Text="更新全部"  OnClientClick="wait();" OnClick="bt_qb_Click"/>

                     </div>
                     <div id="div_update">
                            选择需要更新PDF文件缩略图的文件类型：&nbsp;
                            <asp:Button ID="bt_kj" class="button_U" style="padding-left:auto;padding-right:auto" runat="server" Text="课件" OnClientClick="wait();" OnClick="bt_kj_Click"  
                             />&nbsp;&nbsp;
                            <asp:Button ID="bt_xt" class="button_U" style="padding-left:auto;padding-right:auto" runat="server" Text="习题" OnClientClick="wait();" OnClick="bt_xt_Click"  
                             />&nbsp; &nbsp;
                             <asp:Button ID="bt_wx" class="button_U" style="padding-left:auto;padding-right:auto" runat="server" Text="文献" OnClientClick="wait();" OnClick="bt_wx_Click"  
                             />&nbsp; &nbsp;
                             <asp:Button ID="bt_bz" class="button_U" style="padding-left:auto;padding-right:auto" runat="server" Text="标准" OnClientClick="wait();" OnClick="bt_bz_Click"  
                             />&nbsp; &nbsp;
                             <asp:Button ID="bt_jywz" class="button_U" style="padding-left:auto;padding-right:auto" runat="server" Text="教研文章" OnClientClick="wait();" OnClick="bt_jywz_Click"  
                             />
                            
                     </div>
                     
                 </div>
             </div>
             <div id="div_warning" class="warning margin_div" style="display:none;">
                 <img src="admin/css/image/warning.jpg" width="21" height="23" /><span id="txt_warning"></span>
             </div>
                 
	  		</div>

     <%--使用半透明的DIV实现禁用页面功能
    实现功能：弹出一个DIV层提示等待信息，这个时候禁用用户操作页面中的其他内容。
    弹出DIV:--%>
      <div id="divWaiting" style="display: none; z-index: 1100; left: 27%; right: 25%; position: absolute;
     text-align: center; width: 50%; height: 50px; border-right: #009900 1px solid;
     border-top: #009900 1px solid; border-left: #009900 1px solid; border-bottom: #009900 1px solid;
     background-color: #f9fff6; left: expression((this.offsetParent.clientWidth/2)-(this.clientWidth/2)+this.offsetParent.scrollLeft);
     top: 75px;">
     <br>
     系统数据正在更新中，请勿进行其它操作......
     </div>

     <%--弄一个全屏的DIV来覆盖页面：--%>
     <div id="divDisable" style="display: none;width:100%;height:300px; z-index: 300; position: absolute;left: 8px; top: 3px;filter:alpha(opacity=50)"></div>

    </div>

     
    </form>
</body>
</html>
